home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
simcode.arc
/
GRAPH.INC
< prev
next >
Wrap
Text File
|
1984-12-23
|
3KB
|
51 lines
{$list-}
procedure xxmove(x,y : integer); external;
{ move the cursor to coords x,y }
procedure xxcls; external;
{ clear the screen }
function xxinkey(var inchr : char) : integer; external;
{ read the keyboard. INCHR is the character to which
the input will be returned. RETURN codes are:
0 - no data
1 - normal ASCII
2 - 'extended' ASCII }
procedure xscurt(curtyp : word); external;
{ set the cursor TYPE.
HIGH(curtyp) - start line for cursor
LOW(curtyp) - end line for cursor }
procedure xrcurp(var x,y : integer); external;
{ read the cursor position. Returns x,y }
procedure xscrlup(numline,rowstart,rowend : integer); external;
{ SCROLL the screen UP.
numline - number of lines to leave blank (0=>entire screen)
rowstart - starting row of window (0 = top)
rowend - ending row of window (24 = bottom) }
procedure xscrldn(numline,rowstart,rowend : integer); external;
{ SCROLL the screen DOWN. Parameters same as for 'xscrlup' }
function xrca : integer; external;
{ Read CHARACTER and ATTRIBUTE at current position.
LOW(return) - CHARACTER
HIGH(return) - ATTRIBUTE }
procedure xwca(ca,num : integer); external;
{ Write CHARACTER and ATTRIBUTE at current position.
LOW(ca) - CHARACTER
HIGH(ca) - ATTRIBUTE
num - # of time to insert character (normally 1) }
procedure xttywrt(const outstr : string;attr : integer); external;
{ TTY-like WRITE to CRT starting at current position.
outstr - LSTRING of characters to be written.
attr - ATTRIBUTE byte to be used in writing char }
procedure xlpt1(const prtstr : string); external;
{ Print string on the Line Printer.
prtstr - string to be printed }
procedure moves_wait(src,dest:adsmem;count:word); external; {move from LEFT}
procedure movesr_wait(src,dest:adsmem;count:word); external; {move from RIGHT}
function equipment : word; external;
{ returns the equipment configuration on the PC. The only part
of interest is bits 5-4 which if equal 7 => monochrome display}
procedure sleep(time:integer); external;
{sleep for 'time' seconds}
function timer : word; external;
{returns the current clock in SECONDS -- good only for timing}
{$list+}